package global

import (
	"gin-vue-admin/server/utils/timer"
	"github.com/qiniu/qmgo"
	"github.com/songzhibin97/gkit/cache/local_cache"

	"golang.org/x/sync/singleflight"

	"go.uber.org/zap"

	"gin-vue-admin/server/config"

	"github.com/redis/go-redis/v9"
	"github.com/spf13/viper"
	"gorm.io/gorm"
)

var (
	Db           *gorm.DB
	Redis        *redis.Client
	Mongo        *qmgo.QmgoClient
	ServerConfig config.Server
	Viper        *viper.Viper
	Logger       *zap.Logger
	TimerTask    timer.Timer = timer.NewTimerTask()
	GUC                      = &singleflight.Group{}

	BlackCache local_cache.Cache
)
